import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
const pinia = createPinia();

import './assets/style/style.css';
import '@icon-park/vue-next/styles/index.css';
import 'highlight.js/styles/atom-one-light.css';
import 'element-plus/dist/index.css';

import 'highlight.js/lib/common';
import hljsVuePlugin from '@highlightjs/vue-plugin';

import Pagination from '@/components/pagination/index.vue';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';

const app = createApp(App);

app.component('Pagination', Pagination);

app.use(router);
app.use(ElementPlus, {
  locale: zhCn
});
app.use(hljsVuePlugin);
app.use(pinia);

app.mount('#app');
